import request from '@/utils/request.js'
import { useTokenStore } from '@/stores/token.js'
// 查看景区
export const articleJinquListService = (categoryData)=>{
    return request.post('/admin/finJinqu?currentPage='+categoryData.currentPage,categoryData)
}
// 修改景区
export const articleJinquUpdateService = (categoryData)=>{
    return request.post('/admin/updateJinqu',categoryData)
}
// 删除景区
export const articleJinquDeleteService = (categoryData)=>{
    console.log(categoryData);
    return request.post('/admin/delJinqu?id='+categoryData,{})
}
// 添加景区
export const articleJinquAddService = (categoryData)=>{
    return request.post('/admin/addJinqu',categoryData)
}

// 日志列表
export const articleLogListService = (categoryData)=>{
    return request.post('/admin/finlogs?currentPage='+categoryData.currentPage,categoryData)
}
// 信息列表
export const articleMsgListService = (categoryData)=>{
    return request.post('/admin/finMessage?currentPage='+categoryData.currentPage,categoryData)
}

// 信息添加
export const articleMsgAddService = (categoryData)=>{
    return request.post('/admin/addMessage',categoryData)
}

// 信息修改
export const articleMsgUpdateService = (categoryData)=>{
    return request.post('/admin/updateMessage',categoryData)
}

export const articleMsgDelService = (categoryData)=>{
    return request.post('/admin/delMessage?id='+categoryData)
}


export const articleJindianListService = (categoryData)=>{
    return request.post('/admin/finJindian?currentPage='+categoryData.currentPage,categoryData)
}

export const articleJinqdianUpdateService = (categoryData)=>{
    return request.post('/admin/updateJindian',categoryData)
}
// 删除景区
export const articleJindianDelService = (categoryData)=>{
    console.log(categoryData);
    return request.post('/admin/delJindian?id='+categoryData)
}
// 添加景区
export const articleJindianAddService = (categoryData)=>{
    return request.post('/admin/addJindian',categoryData)
}
// 用户列表
export const articleUserListService = (categoryData)=>{
    return request.post('/admin/finUser?currentPage='+categoryData.currentPage,categoryData)
}
// 添加用户
export const articleUserADDService = (categoryData)=>{
    return request.post('/admin/addUser',categoryData)
}
// 删除用户
export const articleUserDelService = (categoryData)=>{
    return request.post('/admin/delUser?id='+categoryData)
}

// 修改用户
export const articleUserupdateService = (categoryData)=>{
    return request.post('/admin/updateUser',categoryData)
}


export const articleJiudianListService = (categoryData)=>{
    return request.post('/admin/finJiudian?currentPage='+categoryData.currentPage,categoryData)
}

export const articleJiudianAddService = (categoryData)=>{
    return request.post('/admin/addJiudian',categoryData)
}

export const articleJiudianUpdateService = (categoryData)=>{
    return request.post('/admin/updateJiudian',categoryData)
}


export const finxiaochiService = (categoryData)=>{
    return request.post('/admin/finXiaochi?currentPage='+categoryData.currentPage,categoryData)
}
export const addxiaochiService = (categoryData)=>{
    return request.post('/admin/finJiudian?currentPage='+categoryData.currentPage,categoryData)
}

export const delxiaochiService = (categoryData)=>{
    return request.post('/admin/delXiaochi?currentPage='+categoryData.currentPage,categoryData)
}

export const updatexiaochiService = (categoryData)=>{
    return request.post('/admin/updateXiaochi?currentPage='+categoryData.currentPage,categoryData)
}


export const finyuyueService = (categoryData)=>{
    return request.post('/admin/finyuyue?currentPage='+categoryData.currentPage,categoryData)
}


export const delyuyueService = (categoryData)=>{
    return request.post('/admin/delyuyue?currentPage='+categoryData.currentPage,categoryData)
}

export const updateyuyueService = (categoryData)=>{
    return request.post('/admin/updateyuyue?currentPage='+categoryData.currentPage,categoryData)
}

export const finimgService = (categoryData)=>{
    return request.post('/admin/finimg?currentPage='+categoryData.currentPage,categoryData)
}

export const addimgService = (categoryData)=>{
    return request.post('/admin/addimg?currentPage='+categoryData.currentPage,categoryData)
}

export const delimgService = (categoryData)=>{
    return request.post('/admin/delimg',categoryData)
}

export const updateimgService = (categoryData)=>{
    return request.post('/admin/updateimg?currentPage='+categoryData.currentPage,categoryData)
}

export const getXiaochi = (categoryData)=>{
    return request.post('/admin/getXiaochi',categoryData)
}

export const findDianpu = (categoryData)=>{
    return request.post('/admin/findDianpu',categoryData)
}

export const addDianpu = (categoryData)=>{
    return request.post('/admin/addDianpu',categoryData)
}

export const delDianpu = (categoryData)=>{
    return request.post('/admin/delDianpu',categoryData)
}

export const updateDianpu = (categoryData)=>{
    return request.post('/admin/updateDianpu',categoryData)
}

export const findPinlun = (categoryData)=>{
    return request.post('/admin/findPinlun',categoryData)
}

export const delpinlun = (categoryData)=>{
    return request.post('/admin/delpinlun',categoryData)
}



